/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.zaahir.assignment2.OCPViolation.Impl;

import junit.framework.Assert;

/**
 *
 * @author Nashief
 */
public class LoanRequestValidator {
    
    private int balance; 
    
    public LoanRequestValidator(int bal) 
    {
        balance=bal;
    } 
    public boolean loanApproval(PersonLoanRequest personalLoan)
    {
        if(personalLoan.isValid(balance))
    
            return true; 
        else 
            return false;
        }
    }
    

